/**
 *====================================================
 * 文件名称: NewsActionApi.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2015年9月21日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.news.action.v1;

import com.yuexunit.finance.context.FinVersion1;
import com.yuexunit.finance.news.action.v1.model.NewsCategory;
import com.yuexunit.page.PageCriteria;
import com.yuexunit.page.PageList;
import com.yuexunit.web.annotation.Action;
import com.yuexunit.web.annotation.Parameter;
import com.yuexunit.web.annotation.Permission;

/** 
 * @ClassName: NewsActionApi 
 * @Description: TODO(这里用一句话描述这个类的作用) 
 * @author chenxy 
 * @date 2015年9月21日 下午5:41:19  
 */
public interface NewsCategoryActionApi {
	
	@Action(version=FinVersion1.class,description="新增资讯栏目")
	@Parameter(name="newsCategoryId", description="栏目ID")
	public String createNewsCategory (
			@Parameter(name = "categoryName", description = "栏目名称") String categoryName,
			@Parameter(name = "categoryType", description = "栏目类型 1:资讯/2:帮助文档") Integer categoryType
			
	);
	
	@Action(version=FinVersion1.class,description="更新资讯栏目")
	public void updateNewsCategory(
			@Parameter(name = "newsCategoryId", description = "栏目ID") Long newsCategoryId,
			@Parameter(name = "categoryType", description = "栏目类型 1:资讯/2:帮助文档") Integer categoryType,
			@Parameter(name = "categoryName", description = "栏目名称") String categoryName
	);
	
	@Action(version=FinVersion1.class,description="删除资讯栏目")
	public void disableNewsCategory(
			@Parameter(name = "newsCategoryId", description = "栏目ID") Long newsCategoryId
	);
	
	@Action(version=FinVersion1.class,description="资讯栏目明细")
	public NewsCategory inquireNewsCategoryDetail(
			@Parameter(name = "newsCategoryId", description = "栏目ID") Long newsCategoryId
	);
	
	@Action(version=FinVersion1.class,description="资讯栏目列表")
	public PageList<NewsCategory> inquireNewsCategoryPageList(
			@Parameter(name = "categoryName", description = "栏目名称", nullable = true) String categoryName,
			@Parameter(name = "updateFromTime", description = "修改前时间", nullable = true) String updateFromTime,
			@Parameter(name = "updateToTime", description = "修改后时间", nullable = true) String updateToTime,
			@Parameter(name = "page", description = "分页参数") PageCriteria page
	);
	
	@Permission
	@Action(version=FinVersion1.class,description="资讯栏目维护列表")
	public PageList<NewsCategory> inquireCategoryPageList(
			@Parameter(name = "categoryName", description = "栏目名称", nullable = true) String categoryName,
			@Parameter(name = "categoryType", description = "栏目类型 1:资讯/2:帮助文档", nullable = true) Integer categoryType,
			@Parameter(name = "updateFromTime", description = "修改前时间", nullable = true) String updateFromTime,
			@Parameter(name = "updateToTime", description = "修改后时间", nullable = true) String updateToTime,
			@Parameter(name = "page", description = "分页参数") PageCriteria page
	);

}
